/* 
 * shamefully copy from AnFetion.
 * more see: http://code.google.com/p/anfetion/
 */
package person.bangbang.im.Androidgin.Fetion;

public class SerialManager {
    private int rSerial = 1;
    private int iSerial = 1;
    private int sSerial = 1;
    private int subSerial = 1;
    private int mSerial = 1;
    private int qSerial = 1;
    private int aSerial = 1;

    public int getRSerial() {
        return rSerial++;
    }

    public int getISerial() {
        return iSerial++;
    }

    public int getSSerial() {
        return sSerial++;
    }

    public int getSubSerial() {
        return subSerial++;
    }

    public int getMSerial() {
        return mSerial++;
    }

    public int getQSerial() {
        return qSerial++;
    }

    public int getASerial() {
        return aSerial++;
    }

    public void reset() {
        rSerial = 1;
        iSerial = 2;
        sSerial = 1;
        subSerial = 1;
        mSerial = 1;
        qSerial = 1;
        aSerial = 1;
    }

}
